<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2021/9/28
  Time: 9:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>vip欢迎页面</title>
    <style>
        p {
            color: red;
            font-size: 200px;
        }
    </style>
</head>
<body>
<div style="text-align:center">
    <%

        String name = request.getParameter("name");
        String password = request.getParameter("password");
        if (name.equals("admin") && password.equals("11111")) {

            out.println("登录成功");


            if (request.getParameter("check").equals("1")) {
                String count = request.getParameter("num");

                int end = Integer.parseInt(count);
                out.println("欢迎成为会员");

                for (int i = 0; i < end; i++) {
    %>
    <p>欢迎 欢迎 欢迎 </p>
    <%
                }
            }
        } else {
            out.println("登录失败");

        }
    %>
</div>
</body>
</html>
